﻿using MiniFox;
using MiniFox.Infrastructure;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;

namespace Biz.Core.Models
{
    /// <summary>
    /// 设备资料数据 (VO模型)
    /// </summary>
    [Table("devices")]
    public class DeviceVo
    {
        /// <summary>
        /// 唯一id
        /// </summary>
        [Column("deviceId")]
        [JsonProperty("deviceId")]
        public string DeviceId { get; set; }

        /// <summary>
        /// 出厂序列码
        /// </summary>
        [Column("snCode")]
        [JsonProperty("snCode")]
        public string? SnCode { get; set; }

        /// <summary>
        /// 自编码
        /// </summary>
        [Column("displayCode")]
        [JsonProperty("displayCode")]
        public string? DisplayCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [JsonProperty("deviceName")]
        [Column("deviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [Column("deviceType")]
        [JsonProperty("deviceType")]
        public string DeviceType { get; set; }

        [Column("createTime")]
        [JsonProperty("createTime")]
        public DateTime CreateTime { get; set; }

        [Column("updateTime")]
        [JsonProperty("updateTime")]
        public DateTime UpdateTime { get; set; }

    }
}